package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.article.domain.Destination;
import cn.wolfcode.luowowo.article.domain.DestinationTheme;
import cn.wolfcode.luowowo.common.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DestinationMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Destination record);

    Destination selectByPrimaryKey(Long id);

    List<Destination> selectAll();

    int updateByPrimaryKey(Destination record);

    List<Destination> selectForList(QueryObject qo);

    void chageHotState(@Param("id") Long id, @Param("hot") Integer hot);

    List<Destination> selectByids(Long[] refIds);

    List<Destination> selectByRegionId(Long regionId);

    List<Destination> selectProvinces();

    void updateInfo(@Param("id") Long id, @Param("info") String info);

    List<Destination> listTop7ByParentId(Long parentId);
}